using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MeiluluSqlite
{
    public class DB_MySql : IDB
    {
        private int debug = 0;
        private string dbpath = "";
        public void CreateDB(string path)
        {
            dbpath = path;
            if (!File.Exists(path))
            {
                MySqlConnection conn = new("Data Source=localhost;Persist Security Info=yes;UserId=root; PWD=你的密码;");
                MySqlCommand cmd = new("CREATE DATABASE 你的数据库名;", conn);
                conn.Open();
                cmd.ExecuteNonQuery();
                conn.Close();
            }
        }
    }
}
